package com.fengwk.resource.face.entity;

import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;

/**
 * 文件服务器表
 * 
 * @author fengwk
 *
 */
public class ResServer implements Serializable {
	
	private static final long serialVersionUID = -3176094676156832547L;

	@ApiModelProperty("服务器序号")
	protected Long serverId;
	
	@ApiModelProperty("服务器名称")
	protected String name;
	
	@ApiModelProperty("服务器类型")
	protected Integer type;
	
	@ApiModelProperty("服务器url")
	protected String url;
	
	@ApiModelProperty("文件url前缀")
	protected String fileUrlPrefix;
	
	@ApiModelProperty("服务器用户名")
	protected String username;
	
	@ApiModelProperty("服务器密码")
	protected String password;
	
	@ApiModelProperty("服务器状态")
	protected Integer status;

	/**
	 * 本地存储
	 */
	public static final int TYPE_LOCAL = 1;
	
	/**
	 * git存储
	 */
	public static final int TYPE_GIT = 2;
	
	/**
	 * 关闭状态
	 */
	public static final int STATUS_CLOSE = 0;
	
	/**
	 * 接受状态,此状态的服务器可以接受上传服务,应该只有一个服务处于此状态
	 */
	public static final int STATUS_ACCEPT = 1;
	
	/**
	 * 链接状态,此状态的服务器仅提供外链服务
	 */
	public static final int STATUS_LINK = 2;
	
	public Long getServerId() {
		return serverId;
	}

	public void setServerId(Long serverId) {
		this.serverId = serverId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getFileUrlPrefix() {
		return fileUrlPrefix;
	}

	public void setFileUrlPrefix(String fileUrlPrefix) {
		this.fileUrlPrefix = fileUrlPrefix;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	
}
